package com.ruoyi.common.core.domain.entity;


import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.data.annotation.Transient;

import java.time.LocalDateTime;
import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class FileVersion
{
    private static final long serialVersionUID = 1;

    private Long id;  // 版本ID

    private Long fileId;  // 文件ID

    private Integer version;  // 版本号

    private String mark;  // 版本描述

    private String filePath;  // 文件存储路径（MinIO中的对象名称）

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createdTime;  // 创建时间

    private String submitter;
}

